home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
BARNET
/
COMPILER
/
SATHER
/
!Sather
/
Library
/
pSather
/
config
/
spinlock
< prev
next >
Wrap
Text File
|
1996-06-27
|
784b
|
37 lines
#ifndef SPINLOCK_CONFIG
#define SPINLOCK_CONFIG
#ifdef PP
#undef PP
#endif
#ifdef I
#undef I
#endif
#ifdef E
#undef E
#endif
#ifdef B
#undef B
#endif
#define PP no_pre,no_post
#define I import
#define E export
#define B block
#define V var "@r $$;"
#define VOL volatile
-- most of the functions and macros used in this file are defined
-- in am.h, the rest in pSather.h
SPINLOCK_INIT: PP,VOL,exec "SPINLOCK_CREATE($0);";
SPINLOCK_L_LCK: PP,VOL,exec "SPINLOCK_LCK($0);";
SPINLOCK_L_UNLCK: PP,VOL,exec "SPINLOCK_UNLCK($0);";
SPINLOCK_L_TRY: PP,VOL,V,exec "$$=SPINLOCK_TRY($0);" "$$";
SPINLOCK_LCK: PP,VOL,exec "spinlock_lck_remote($0);";
SPINLOCK_UNLCK: PP,VOL,exec "spinlock_unlck_remote($0);";
SPINLOCK_TRY: PP,VOL,V,exec "$$=spinlock_try_remote($0);" "$$";
#endif